home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglupartialdisk.z / fglupartialdisk
Encoding:
Text File  |  2002-10-03  |  5.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk((((3333GGGG))))            OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee            ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk - draw an arc of a disk
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk( CHARACTER*8 _q_u_a_d,
  14.                                  REAL*4 _i_n_n_e_r,
  15.                                  REAL*4 _o_u_t_e_r,
  16.                                  INTEGER*4 _s_l_i_c_e_s,
  17.                                  INTEGER*4 _l_o_o_p_s,
  18.                                  REAL*4 _s_t_a_r_t,
  19.                                  REAL*4 _s_w_e_e_p )
  20.  
  21.  
  22. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  23.      _q_u_a_d    Specifies a quadrics object (created with ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc).
  24.  
  25.      _i_n_n_e_r   Specifies the inner radius of the partial disk (can be 0).
  26.  
  27.      _o_u_t_e_r   Specifies the outer radius of the partial disk.
  28.  
  29.      _s_l_i_c_e_s  Specifies the number of subdivisions around the _z axis.
  30.  
  31.      _l_o_o_p_s   Specifies the number of concentric rings about the origin into
  32.              which the partial disk is subdivided.
  33.  
  34.      _s_t_a_r_t   Specifies the starting angle, in degrees, of the disk portion.
  35.  
  36.      _s_w_e_e_p   Specifies the sweep angle, in degrees, of the disk portion.
  37.  
  38. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  39.      ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk renders a partial disk on the z = 0 plane. A partial disk
  40.      is similar to a full disk, except that only the subset of the disk from
  41.      _s_t_a_r_t through _s_t_a_r_t + _s_w_e_e_p is included (where 0 degrees is along the +_y
  42.      axis, 90 degrees along the +_x axis, 180 degrees along the -_y axis, and
  43.      270 degrees along the -_x axis).
  44.  
  45.      The partial disk has a radius of _o_u_t_e_r, and contains a concentric
  46.      circular hole with a radius of _i_n_n_e_r. If _i_n_n_e_r is 0, then no hole is
  47.      generated. The partial disk is subdivided around the _z axis into slices
  48.      (like pizza slices), and also about the _z axis into rings (as specified
  49.      by _s_l_i_c_e_s and _l_o_o_p_s, respectively).
  50.  
  51.      With respect to orientation, the +_z side of the partial disk is
  52.      considered to be outside (see ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn).  This means that
  53.      if the orientation is set to GGGGLLLLUUUU____OOOOUUUUTTTTSSSSIIIIDDDDEEEE, then any normals generated
  54.      point along the +_z axis. Otherwise, they point along the -_z axis.
  55.  
  56.      If texturing is turned on (with ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee), texture coordinates
  57.      are generated linearly such that where r = outer, the value at (_r, 0, 0)
  58.      is (1.0, 0.5), at (0, _r, 0) it is (0.5, 1.0), at (-_r, 0, 0) it is (0.0,
  59.      0.5), and at (0, -_r, 0) it is (0.5, 0.0).
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk((((3333GGGG))))            OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee            ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk((((3333GGGG))))
  71.  
  72.  
  73.  
  74. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  75.      ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr, ffffgggglllluuuuDDDDiiiisssskkkk, ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc, ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn,
  76.      ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee, ffffgggglllluuuuSSSSpppphhhheeeerrrreeee
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.